Create the Update MAC

Command:

Create the Update MAC

Notes:

Use of this command requires the optional ESP licence. Error code 67 will be returned if the command is not licensed.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Command Code

2 A

Value “Y4”

*KMACUPD

32 H

Double length KMACUPD encrypted under LMK pair 22-23 variant 1

IDBATCH

2 B

Identifier for a POS Transaction Batch

IDPSAM

4 B

PSAM Identifier assigned by the PSAM creator.

CLA

1 B

CLA

INS

1 B

INS

P1P2

2 B

P1P2

LC

1 B

LC

IDTHREAD

1 B

IDTHREAD

Update Number

1 B

Update Number

TAG

2 B

Tag identifying data in the update

LEN

1 B

Length of the following data

Update data

n B

Update data

End Message Delimiter

1 C

Optional. Must be present if a message trailer is present. Value X'19

Message Trailer

n A

Optional. Maximum length 32 characters

 

 

 

Field

Length & Type

Details

RESPONSE MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Response Code

2 A

Value “Y5”

Error Code

2 N

00 – No error.

10 – KMAC parity error

12 – No keys loaded in user storage

13 – LMK error - report to Supervisor

15 – Error in input data

21 – Invalid user storage index

  

SUPD

16 H

Update MAC

End Message Delimiter

1 C

Will only be present if present in the command message. Value X'19

Message Trailer

n A

Will only be present if in the command message. Maximum length 32 characters